import thenFs from 'then-fs'

thenFs.readFile('./不存在的文件.txt','utf8')
.catch(err => {
    console.log(err.message)
}).then(r1 => {
    console.log(r1)
    return thenFs.readFile('./2.txt','utf8')
}).then(r1 => {
    console.log(r1)
}).then(r1 => {
    console.log('没有返回promise也可以调用then，顺序执行')
})
